<template>
  <div class="home-container">
    <ul class="nav">
      <router-link :to="{path: '/ueditor'}" tag="li">百度编辑器</router-link>
      <router-link :to="{path: '/markdown'}" tag="li">MarkDown编辑器</router-link>
      <router-link :to="{path: '/wangeditor'}" tag="li">WangEditor编辑器</router-link>
    </ul>
    <div class="content-area">
      <keep-alive>
        <router-view/>
      </keep-alive>
    </div>
  </div>
</template>

<script>

export default {
  name: 'HomePage',
}

</script>

<style lang="less">

.home-container{
  width: 100%;
  height: 100%;
  
  .nav {
    list-style: none;
    text-align: center;
    margin: 0;
    padding: 0;
    height: 70px;
    background-color: #fff;

    li {
      display: inline-block;
      height: 40px;
      line-height: 40px;
      padding: 0 15px;
      text-align: center;
      border: 1px solid #cccccc;
      box-shadow: 0 0 10px #eeeeee;
      margin: 10px;
      cursor: pointer;
      border-radius: 20px;
      background-color: #ffffff;
    }

    li:hover,
    li.router-link-exact-active {
      background-color: #3eaf7c;
      border: 1px solid #3eaf7c;
      color: #ffffff;
      box-shadow: 0 0 20px #eeeeee;
    }
  }

  .content-area{
    margin-top: 15px;
    background-color: #fff;
    height: calc(100% - 85px);
  }
}

</style>
